<?php 
class CBaseBlogs extends CBaseEosPlural {

	public function __construct() {		
		return true;
	}
	
	public static function fetchBlogs( $objDatabase ) {
		$strSql = 'SELECT * FROM `blogs`';
		return parent::fetchResults( $strSql, 'CBlog', $objDatabase );
	}
	
	public static function fetchBlogById( $intId, $objDatabase ) {
		$strSql = 'SELECT 
						b.* 
					FROM 
						`blogs` AS b 
					WHERE 
						b.`id` = ' . $intId;
		return parent::fetchResult( $strSql, 'CBlog', $objDatabase );
	}
		
}

?>